package com.thwj.common.core.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * @Description  
 * @Author  linmengmeng
 * @Date 2025-01-18 23:48:40 
 */

@Entity
@Table ( name ="biz_user_account" , schema = "")
public class BizUserAccount  implements Serializable {

	private static final long serialVersionUID =  3804594568053034977L;

	/**
	 * 主键
	 */
	@Id
   	@Column(name = "id" )
	private Long id;

	/**
	 * 用户id
	 */
   	@Column(name = "user_id" )
	private Long userId;

	/**
	 * 余额
	 */
   	@Column(name = "amount" )
	private BigDecimal amount;

	/**
	 * 冻结金额
	 */
   	@Column(name = "freeze_amount" )
	private BigDecimal freezeAmount;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_date" )
	private Date createDate;

   	@Column(name = "version_no" )
	private Long versionNo;

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public BigDecimal getAmount() {
		return this.amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public BigDecimal getFreezeAmount() {
		return this.freezeAmount;
	}

	public void setFreezeAmount(BigDecimal freezeAmount) {
		this.freezeAmount = freezeAmount;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Long getVersionNo() {
		return this.versionNo;
	}

	public void setVersionNo(Long versionNo) {
		this.versionNo = versionNo;
	}

	@Override
	public String toString() {
		return "{" +
					"id='" + id + '\'' +
					"userId='" + userId + '\'' +
					"amount='" + amount + '\'' +
					"freezeAmount='" + freezeAmount + '\'' +
					"createDate='" + createDate + '\'' +
					"versionNo='" + versionNo + '\'' +
				'}';
	}

}
